#define _CRT_SECURE_NO_WARNINGS
#include "BSTree.h"

void Test1()
{
	int a[] = { 8,3,1,10,6,4,7,14,13 };

	BSTree<int> t1;
	for (auto e : a)
	{
		t1.InsertR(e);
	}
	t1.InOrder();
	cout << endl;

	t1.EraseR(5);
	t1.InOrder();
	cout << endl;

	t1.EraseR(14);
	t1.InOrder();
	cout << endl;

	t1.EraseR(13);
	t1.InOrder();
	cout << endl;


	BSTree<int> t2(t1);
	t2.InOrder();

}

int main()
{
	Test1();
}